package com.fjut.pms.service.impl;

import java.util.HashMap;
import java.util.Map;

import com.fjut.pms.dao.IBaseDao;
import com.fjut.pms.pojo.Educate;
import com.fjut.pms.service.IEduService;

public class EducateServiceImpl implements IEduService {

	private IBaseDao eduDao;

	public Educate findByEmpId(int id) {
		String hql="from Educate edu where employee_id=:id";
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("id", id);
		return (Educate)eduDao.findByHql(hql,map);
	}

	public IBaseDao getEduDao() {
		return eduDao;
	}

	public void setEduDao(IBaseDao eduDao) {
		this.eduDao = eduDao;
	}

}
